package com.niiwoo.civet.trade.dto.response.myloan;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
public class UserProjectStatisticResponseDTO implements Serializable {

    private static final long serialVersionUID = -5484878192468580001L;

    //用户ID
    private String userId;

    //昵称
    private String nickName;

    //你我分
    private Integer niiwooScore;

    //头像
    private String headImage;

    //性别(0、未知 1、男 2、女)
    private Byte gender;

    //复借笔数
    private Integer repetitionCount;

    //借款用途
    private String loanUsage;

    //借款年化利率
    private BigDecimal yearInterestRate;

    //借款期限
    private Integer deadline;

    //期数单位(1:月，2:天)
    private Byte deadlineUnit;

    //标的总金额
    private BigDecimal contractAmount;

    //可投金额
    private BigDecimal remainingAmount = BigDecimal.ZERO;

    //还款方式（1到期还本息，2等额本息，3按月还息，到期还本）
    private Byte repaymentWay;

    //项目ID
    private Long projectId;

    //市
    private String loanCity;

    //区
    private String loanArea;

    //发布时间
    private String publishTime;

    //累计借款金额
    private BigDecimal successAmount;

    //累计结清借款（已还清）
    private Integer finishCount;

    //成功借款笔数
    private Integer successCount;

    //逾期笔数
    private Integer overdueCount;

    //标的状态(1审核中，2筹款中，3还款中，4已结清，5流标)
    private Byte status;

    //标的子状态
    private Integer subStatus;

    //常见问题url
    private String commonProblem;

    //投资记录
    private Integer investmentRecord;

    //回款期数
    private Integer currentPeriod;

    //风险提示url
    private String riskWarning;

    //是否追加投资(0:否 1：是)
    private Byte additionalInvestment;

    //渠道编号(app为默认渠道 kaolalicai考拉理财 tuandai团贷)
    private String channelCode;

    //标的类型(默认1:个人极速借 2:机构极速借 3:你我云贷)
    private Byte projectType;

    //是否借款人(0:否 1：是)
    private Byte theBorrower;

    //用户未支付订单数
    private Integer investingCount;

    //过期时间
    private long expireTime;

    //是否弹窗
    private Boolean popUpWindows = false;

    //是否显示借款凭证
    private Boolean isShowLoanVoucher = false;

    //授信额度类型(0:未知,1:社保,2:芝麻,3:学历,4:融360,5:自有资质,6:融360自有资质,7:信用卡,8:房产证,9:装修项目,10:车辆)
    private Byte creditType;

    // 借款人类型(1:个人，2:企业)
    private Byte borrowerType;

    // 标的提供方
    private String provider;

    // 标的提供方logo
    private String providerLogo;

    // 担保方式H5页面地址
    private String guaranteeModelH5Url;

    // 是否可以转让(0:不可转让，1:可转让)
    private Byte isTransferable;

    //活动加息额度
    private BigDecimal activityAddInerest;

    //活动标题
    private String activityTitle;

    private Byte loanType; // 贷款类型(1:社保贷，2:信用卡贷，3:房抵贷，4:车抵贷，5:供应链贷，7：极速贷，9:其他,10:消费贷,11:生意贷)

    private String loanTypeDesc;// 贷款类型(社保贷，信用卡贷，房抵贷，车抵贷，供应链贷，极速贷，其他, 消费贷,生意贷)

    //产品介绍
    private String productReadme;

    //逾期垫付天数(逾期多少天后开始垫付)
    private Integer advanceOverdueDays;

    //是否主借人?0.否;1.是;
    private Byte isMasterBorrower;

    //剩余时间
    private Long remainingTime = 0L;

    private Date fullProjectTime;

    private Boolean isIntelligentInvestment;

    //("散标起投金额")
    private BigDecimal projectStartInvestAmount;
    //("散标递增金额")
    private BigDecimal projectIncrementalAmount;

}


